/*
 * PlayScenarioPanel.h
 *
 *  Created on: Oct 24, 2011
 *      Author: gonzalo
 */

#ifndef PLAYSCENARIOPANEL_H_
#define PLAYSCENARIOPANEL_H_

#include "ScenarioPanel.h"
#include "../../Server/BattleMasterInterface.h"
#include "Bullet.h"
#include "TankStatus.h"
#include "Tank.h"


class PlayScenarioPanel: public ScenarioPanel {
private:

	std::string owner;


	std::list<Tank*> jugadores;

	std::list<Bullet*> bullets;


	Tank* getPlayerTank();

public:

	PlayScenarioPanel(int xPos, int yPos, Widget* parent,BattleMasterInterface* interface);

	virtual void resolve();

	virtual void showOn(SDL_Surface* surface);

	void addBullet(int x, int y, int angle);

	void addPlayer(std::string owner,int x, int y,int angle = 0);

	void addPlayer(TankStatus* tankStatus);

	TankStatus getTankStatus();

	virtual ~PlayScenarioPanel();

};

#endif /* PLAYSCENARIOPANEL_H_ */
